var is_remember = false;

//样式主题判断
if (window.localStorage.getItem('changeTheme')) {
    var link = document.createElement('link');
    link.type = 'text/css';
    link.rel = 'stylesheet';
    link.href = '/static/x-admin/css/theme' + window.localStorage.getItem('changeTheme') + '.css';
    document.getElementsByTagName("head")[0].appendChild(link);
}

let wpgaci = {
    goUrl: function (url, mins) {
        setTimeout(function () {
            window.location.href = url;
        }, mins * 1000);
    }
};
var header = {
    changeTheme: function (theme) {
        window.localStorage.setItem("changeTheme",theme);
        top.location.reload();
    }
};